.cm-compact {
    display: inline-flex;
    align-items: center;

    >*:not(:last-child):not(:first-child),
    >*:not(:last-child):not(:first-child) .cm-field-value {
        border-start-end-radius: 0;
        border-start-start-radius: 0;
        border-end-start-radius: 0;
        border-end-end-radius: 0;
    }

    >*:not(:last-child):not(:first-child).cm-button-theme-outline {
        &::after {
            border-start-end-radius: 0;
            border-start-start-radius: 0;
            border-end-start-radius: 0;
            border-end-end-radius: 0;
        }
    }

    >*:not(:last-child):first-child,
    >*:not(:last-child):first-child .cm-field-value {
        border-start-end-radius: 0;
        border-end-end-radius: 0;
    }

    >*:not(:last-child):first-child.cm-button-theme-outline {
        &::after {
            border-start-end-radius: 0;
            border-end-end-radius: 0;
        }
    }

    >*:not(:first-child):last-child,
    >*:not(:first-child):last-child .cm-field-value {
        border-start-start-radius: 0;
        border-end-start-radius: 0;
    }

    >*:not(:first-child):last-child.cm-button-theme-outline {
        &::after {
            border-start-start-radius: 0;
            border-end-start-radius: 0;
        }
    }

    >*:not(:last-child),
    >*:not(:last-child) .cm-field-value {
        margin-inline-end: -1px;
    }

    >*:hover,
    >*:focus,
    >*:focus-within,
    >*:active {
        z-index: 2;
    }

    >*:not(.cm-spinner):not(.cm-button.cm-button-empty):not(.cm-button.cm-button-icon-only) {
        width: auto;
    }
}

// .cm-compact-item:not(.cm-compact-last-item):not(.cm-compact-first-item),
// .cm-compact-item:not(.cm-compact-last-item):not(.cm-compact-first-item) .cm-field-value {
//     border-start-end-radius: 0;
//     border-start-start-radius: 0;
//     border-end-start-radius: 0;
//     border-end-end-radius: 0;
// }

// .cm-compact-item:not(.cm-compact-last-item):not(.cm-compact-first-item).cm-button-theme-outline {
//     &::after {
//         border-start-end-radius: 0;
//         border-start-start-radius: 0;
//         border-end-start-radius: 0;
//         border-end-end-radius: 0;
//     }
// }

// .cm-compact-item:not(.cm-compact-last-item).cm-compact-first-item,
// .cm-compact-item:not(.cm-compact-last-item).cm-compact-first-item .cm-field-value {
//     border-start-end-radius: 0;
//     border-end-end-radius: 0;
// }

// .cm-compact-item:not(.cm-compact-last-item).cm-compact-first-item.cm-button-theme-outline {
//     &::after {
//         border-start-end-radius: 0;
//         border-end-end-radius: 0;
//     }
// }


// .cm-compact-item:not(.cm-compact-first-item).cm-compact-last-item,
// .cm-compact-item:not(.cm-compact-first-item).cm-compact-last-item .cm-field-value {
//     border-start-start-radius: 0;
//     border-end-start-radius: 0;
// }

// .cm-compact-item:not(.cm-compact-first-item).cm-compact-last-item.cm-button-theme-outline {
//     &::after {
//         border-start-start-radius: 0;
//         border-end-start-radius: 0;
//     }
// }

// .cm-compact-item:not(.cm-compact-last-item),
// .cm-compact-item:not(.cm-compact-last-item) .cm-field-value {
//     margin-inline-end: -1px;
// }

// .cm-compact-item:hover,
// .cm-compact-item:focus,
// .cm-compact-item:focus-within,
// .cm-compact-item:active {
//     z-index: 2;
// }

// .cm-compact-item:not(.cm-spinner):not(.cm-button.cm-button-empty):not(.cm-button.cm-button-icon-only) {
//     width: auto;
// }